﻿using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface ITCustomerRepository:IBaseRepository<TCustomer>
    {
        bool AddTCustomer(TCustomer customer);
        /// <summary>
        /// 查询供应商
        /// </summary>
        /// <param name="keyword"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TCustomer> GetAllTCustomer(string? name, int pageIndex, int pageSize, out int totalCount);
        bool UpdTCustomer(TCustomer Customer);
        bool DelTCustomer(int id);
        TCustomer GetCustomerById(int id);
        /// <summary>
        /// 获取供应商类型字典数据
        /// </summary>
        /// <returns></returns>
        List<TDictItem> GetTCustomerDic();

        /// <summary>
        /// 批量添加时间
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        bool AddCustomerList(List<TCustomer> list);
    }
}
